#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QIcon icon;
    icon.addFile(":/1.jpg");

    ui->pushButton_cf->setIcon(icon);
    ui->pushButton_cf->setIconSize(QSize(120,120));

//    ui->pushButton_cf->setShortcut(QKeySequence("c"));
      ui->pushButton_cf->setShortcut(QKeySequence(Qt::Key::Key_C));
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_cf_clicked()
{
    ui->pushButton_cf->setText("cf你xxxxxx");
    ui->pushButton_cf->setText("xxx");
}
